package com.example.springboot.service;

import com.example.springboot.common.Result;
import com.example.springboot.entity.Files;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface IFilesService extends IService<Files> {
    String upload(MultipartFile file) throws IOException;
    void download(String fileUUID, HttpServletResponse response) throws IOException;
    Files getFileByMd5(String md5);
    Result delete(Integer id);
    Result deleteBatch(List<Integer> ids);
}
